const toSelectData = data => {
  const tree = [];
  if (data) {
    data.forEach(item => {
      tree.push({ text: item.orgName, value: item.orgCode });
    });
    return tree;
  }
  return tree;
};

export default toSelectData;
